package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.Goods;
import cn.imvc.app.entities.GoodsReviews;
import cn.imvc.data.jpa.repository.IJpqlExecutor;
import cn.imvc.data.jpa.repository.ISqlExecutor;

public interface GoodsReviewsRepository extends JpaRepository<GoodsReviews, Integer>,IJpqlExecutor<GoodsReviews>,ISqlExecutor<Object>{
	void deleteByGoods(Goods goods);
	
	List<GoodsReviews> findByGoodsAndState(Goods goods,byte state);
}
